org.eclipse.vtp.framework.spi
Interface IProcessEngine

All Known Implementing Classes:
ProcessEngine

public interface IProcessEngine

A process engine that can create process instances from descriptors.

Author:
Lonnie Pryor

Method Summary
 void addProcessEngineObserver(IProcessEngineObserver observer)
          Adds an observer that will be notified of changes to this process engine.
 IProcess createProcess(IProcessDefinition definition, IProcessDescriptor descriptor)
          Creates a new process instance from the specified descriptor.
 void removeProcessEngineObserver(IProcessEngineObserver observer)
          Removes an observer form the list of this process engine's observers.
 

Method Detail

createProcess

IProcess createProcess(IProcessDefinition definition,
                       IProcessDescriptor descriptor)
                       throws java.lang.NullPointerException
Creates a new process instance from the specified descriptor.

Parameters:
definition - The definition of the process to create.
descriptor - The descriptor of the process to create.
Returns:
A new process instance from the specified descriptor.
Throws:
java.lang.NullPointerException - If the specified definition is null.
java.lang.NullPointerException - If the specified descriptor is null.

addProcessEngineObserver

void addProcessEngineObserver(IProcessEngineObserver observer)
                              throws java.lang.NullPointerException
Adds an observer that will be notified of changes to this process engine.

Parameters:
observer - The observer to add.
Throws:
java.lang.NullPointerException - If the supplied observer is null.

removeProcessEngineObserver

void removeProcessEngineObserver(IProcessEngineObserver observer)
                                 throws java.lang.NullPointerException
Removes an observer form the list of this process engine's observers.

Parameters:
observer - The observer to remove.
Throws:
java.lang.NullPointerException - If the supplied observer is null.